package com.ncucoder.demo.web;

import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import org.springframework.web.servlet.ModelAndView;

/**
 * @author <a href="https://edit.ncucoder.com">hsowan</a>
 * @since 2018-12-25 00:13
 */
@RestController
@RequestMapping("/")
public class AdminController {

    @GetMapping
    public ModelAndView admin(){
        ModelAndView mav = new ModelAndView();
        mav.addObject("adminjs", "js/admin.js");
        mav.addObject("admincss", "css/admin.css");
        mav.addObject("iconic", "css/open-iconic-bootstrap.css");
        mav.setViewName("admin");
        return mav;
    }
}
